package com.sluggard.security.manage.model.res;

import com.sluggard.mp.model.entity.IdEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Schema(name = "用户信息", description = "用户信息")
@EqualsAndHashCode(callSuper = true)
public class UserInfoRes extends IdEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "最后选择角色")
    private Long roleId;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "姓名")
    private String realName;

    @Schema(description = "昵称")
    private String nickName;

    @Schema(description = "类型{1:超级管理员,2:普通管理员}")
    private Boolean type;

    @Schema(description = "电子邮件")
    private String email;

    @Schema(description = "手机号码")
    private String mobileNo;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "最后修改时间")
    private LocalDateTime modifyTime;

    @Schema(description = "账户过期时间")
    private LocalDateTime expirationTime;

    @Schema(description = "描述")
    private String descn;

    @Schema(description = "授权token")
    private String token;

}
